gdk: Specialise RGBA8 → premultiplied BGRA8 conversion
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Tue, 15 Feb 2022 19:54:18 +0000 (20:54 +0100)
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Wed, 16 Feb 2022 15:35:39 +0000 (16:35 +0100)
commit0e3ed7a7380a377c650dfe665db741498e183933
tree7ed6081b540aa3e72f582d7c4b773ecc20c786ec
parent82e46905649e8f9bd8fef089a65386f0b62c3f81
gdk: Specialise RGBA8 → premultiplied BGRA8 conversion

On x86 on a Kaby Lake CPU, this makes it go from 6.63% of the total
execution time (loading some PNGs using the cairo backend) down to
3.20%.

On ARM on a Cortex-A7, on the same workload, this makes it go from 57%
to 8.36%.
gdk/gdkmemoryformat.c